# 打印一个对称的字母树

import math
zm=input("")

i = 0
j = 0
characterIndex = ord(zm) - 65
line = characterIndex + 1
for i in range(line):
    count = 0
    while count < characterIndex - i:
        print(" ", end="")
        count += 1
    count = 1
    while count <= (2 * i + 1):
        print(chr(int(65 + i - math.fabs(i+1 - count))), end="")
        count += 1
    print("")